<?php
/**
* @package 
* @subpackage 
*
* @copyright 
* @license 
*/
 
// No direct access to this file
defined('_JEXEC') or die;
 
// import Joomla view library
jimport('joomla.application.component.view');
 
/**
* HTML View class for the ... Component
*
* @since 0.0.1
*/
class WelliVermittlungViewAerzte extends JViewLegacy
{
    /**
         * Display the ... view
         *
         * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
         *
         * @return  void
         */
        public function display($tpl = null) 
        {
            //http://localhost/joomla3/index.php?option=com_wellivermittlung&view=aerzte

                // Get data from the model
                $items = $this->get('Items');
                $pagination = $this->get('Pagination');
 
                // Check for errors.
                if (count($errors = $this->get('Errors'))) 
                {
                        JError::raiseError(500, implode('<br />', $errors));
                        return false;
                }
                // Assign data to the view
                $this->items = $items;
                $this->pagination = $pagination;
 
 
                // Display the template
                parent::display($tpl);
				
                // Set the document
                $this->setDocument();
        }

        /**
         * Method to set up the document properties
         *
         * @return void
         */
        protected function setDocument() 
        {
                $document = JFactory::getDocument();
                $document->setTitle(JText::_('COM_WELLIVERMITTLUNG_AERZTE'));
        }
}



